@rem winrar.exe A(create archive) -m5(highest compression level) -md4096(dictionary size) -ep(exclude pathes from names) -sfxDefault.SFX(create sfx win32 with module Default.SFX - eng lang in dialog) -rr5p(information for archive recovering 5 in this case) -z%~dp0./script.txt(comment file name) -p%1(specify password) %2(archive file name) %3(source file name)

del /q %2 > nul
echo %1
%WINRAR% a -m5 -md4096 -ep -s -sfx -z%~dp0.\script.txt -p%1 %2 %3
del /q %3 > nul
